﻿using System.Windows.Input;
using SQLVis.Presentation.ViewModel;
using System.Windows;

namespace SQLVis.Presentation.View.WPF
{
	/// <summary>
	/// Main window of the Proof of Concept application for the GraphLayout control.
	/// </summary>
	public partial class SQLVisMainWindow
	{
        readonly LayoutAnalyzerViewModel analyzerViewModel = new LayoutAnalyzerViewModel();

        public SQLVisMainWindow()
		{
			InitializeComponent();

            DataContext = analyzerViewModel;

            analyzerViewModel.AnalyzedLayouts.Add( new GraphLayoutViewModel
                                                    {
                                                        LayoutAlgorithmType = "FR",
                                                        IsSelected = true
                                                    } );
		}

		
		private void Exit_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Application.Current.Shutdown();
		}

		
		
	}
}
